#include <iostream>
using namespace std;
int main()
{
    double a;
    cin >> a;
    cout << (int)a << " " << a - (int)a;
    return 0;
}